package com.liang.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liang.common.utils.PageUtils;
import com.liang.gulimall.product.entity.SpuInfoDescEntity;
import com.liang.gulimall.product.entity.SpuInfoEntity;
import com.liang.gulimall.product.vo.SpuSaveVo;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * spu信息
 *
 * @author sdl
 * @email 675184354@qq.com
 * @date 2020-06-01 11:31:35
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);




    void saveSpuInfo(SpuSaveVo vo);

    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    PageUtils queryPageCondiction(Map<String, Object> params);

    /**
     * 商品上架功能
     * @param spuId
     */
    void up(Long spuId);

    SpuInfoEntity getSpuInfoBySkuId(Long skuId);
}

